package com.hutao.chargingpile.spread.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hutao.chargingpile.spread.util.LocalDateTimeConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ExcelCpClient {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "登录账号",dataType = "String")
    private String number;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "性别:0是女,1是男")
    private Long sex;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "是否为投资商(0:是投资商,1:不是投资商)")
    private Long investor;

    @ApiModelProperty(value = "积分")
    private Long integral;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "0开充电卡,1不充电卡")
    private Long electricCard;

    @ApiModelProperty(value = "身份证")
    private Long identityCard;

    @ApiModelProperty(value = "账号等级(0普通用户,1:vip用户)")
    private Long accountLevel;

    @ApiModelProperty(value = "实名认证(0为认证1是认证)")
    private Long realName;

    @ApiModelProperty(value = "逻辑删除 0代表未删除 1删除")
    @TableLogic
    private Long isDelete;

    //@ApiModelProperty(value = "发生时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "创建时间",converter = LocalDateTimeConverter.class)
    private LocalDateTime createTime;
}
